<?php if(isset($workouts)):?>
<?php foreach($workouts as $workout):?>
	
	<?php if(isset($workout['Template']['title'])):?>
		<div class="workout-event rounded" rel="<?php echo $workout['Workout']['id'] ?>">
	<?php $title = $text->truncate($workout['Template']['title'], 8, '') . S . '(' . $workout['Workout']['time_total'] . ')';
	echo $html->link($title, array('action' => 'view', $workout['Workout']['id']), array('class'=>'nyroModalLive')); ?>
	</div>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>